package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.SurveyPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository("SurveyPrivilegeMapper")
public interface SurveyPermissionMapper {
    int loadSurveyPermission(@Param("catalogId") String catalogId, @Param("formId") String formId, @Param("userId") String userId, @Param("deviceId") String deviceId);

    int saveSurveyPermission(SurveyPermission permission);

    int deletePermissionByCatalog(@Param("catalogId") String catalogId);

    int deletePermissionByForm(@Param("formId") String formId);
}
